home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindlink.net!news
- From: genew@mindlink.bc.ca (Gene Wirchenko)
- Newsgroups: comp.lang.pl1,comp.lang.c
- Subject: Re: PL/I and C
- Date: Mon, 26 Feb 1996 20:37:36 GMT
- Organization: MIND LINK! - British Columbia, Canada
- Message-ID: <4gt5sm$jra@fountain.mindlink.net>
- References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <4gn5d8$t5f@newsbf02.news.aol.com> <4gril3$sn9@goanna.cs.rmit.EDU.AU> <31320777.2810@corp.dialog.com>
- NNTP-Posting-Host: line254.nwm.mindlink.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- Paul Gorodyansky <paul_gorodyansky@corp.dialog.com> wrote:
-
- >As I said, I just found out that my posting went also to
- > comp.lang.C group, in addition to PL/I group.
-
- [snip]
-
- > All you, C guys who replied, paid TOO MUCH attention to my note
- >about UNIONS, but it's a MINOR thing compared to other AWFUL for
- >an *application* programmer things in C that I listed.
- >In systems/low-level tasks C may be Perfect.
-
- >After so many replies that did not quote these MAJOR things, I am
- >posting to comp.lang.C group LAST time, repeating the items, that,
- >in my opinion, make C a *bad* choice for
- > an *application* Production environment,
-
- C is used for apps.
-
- > where Fix time is *critical*,
-
- Considering some of the interactions I ran into in using PL/I,
- this is not a point in its favor.
-
- > where are MANY (not ONE package for market) *different* programs,
-
- How is this point relevant?
-
- > OFTEN to be changed due to Specs changes,
-
- How is this point relevant?
-
- > often by several engineers, who may see *this* program and
- > *this* data(Huge) FIRST time and have COUPLE hours to fix it.
-
- Programmers program. Engineers engineer.
-
- A bit of a troll?
-
- > It is known that C is lower level language that PL/I,
- >it's closer to Assembly. Nothing wrong with it, moreover,
- >it's why C programs usually are much more efficient.
-
- > BUT 'there is no free lunch' and this effectiveness causes
- >LESS readability.
- >PL/I is reacher, so it's is easier to implement things there and
- ???????
- >make a code more readable.
-
- Richer perhaps?
- No, C just doesn't have a complex syntax. Many things are
- implemented as functions. For example, why learn a separate syntax
- for I/O. All C I/O is through functions.
-
- >Just 2 examples of our NORMAL, REGULAR code (nothing special).
-
- >I. Select/Switch statement.
- >-----------------------
- > This important part of ANY *application* program is VERY
- > -------
- > rudimental and hard to use in C - you can use ONLY numbers here:
-
- Agreed. I've already offered to sell my rights in the use of
- switch. No takers so far. <G>
-
- [snip]
-
- >Just another example. Strings.
-
- > C has this VERY STUPID limitation - a 'string' in C it's a set of
- >bytes with x'00' at the end !
- >But, we have x'00' all over our source data !
- >For example, we have on-line European Patent Office data (only ONE of
- >our 400+ *different* applications), and source file is 40 gigabytes (!)
- >FULL of x'00' !!!
-
- Not true. It's just that is the way string.h is defined. You
- are free to set up strings as you wish.
-
- > Also, C does not have Variable Length Strings, that are VERY
- >important for our *application* programs. Again, this feature helps to
- >have programs SHORTER, more READABLE, and CLOSER to specs.
-
- C DOES have variable length strings. Take a look at strlen().
-
- > And now imagine how IT (foo-o-o) looks in OUR programs, where
- >due to this STUPID x'00' limitation, we even can not use THESE
- >(not very friendly) functions, and MUST use operations on
- >BUFFERS, i.e. mem.. functions, taking through a code Length of
- >buffers all the time !
- > Same Program in PL/I is 100 times more readable and is 100 times
- >more easy to CHANGE and FIX.
-
- If you do not have the proper functions, yes, you can have
- trouble. What do you do in PL/I if the standard staatements and
- operators don't meet your needs? In C, you write a library.
-
- >So, my points are the following.
- > Open Systems people very often tell that *only* C
- >should be used EVERYWHERE, and it's wrong - you never go to
- >a farmer's field with a handbag, and to a food store with a truck -
- >tasks are different, and some can be done better with C,
- >and some - with PL/I.
-
- This is news? When did you catch on?
-
- > For *application* programming *Production* environment with a lot
- >of Text Processing, and a lot of *different* and often *changed*
- > --------------- -----
- >programs, PL/I is MUCH, MUCH better than C:
- > - PL/I has wider set of statements, so it is much easier in PL/I
- > to make a code be CLOSE to specs, so next person will understand
- > a code faster and can FIX program faster;
-
- Therefore, you have to know more to program in it. The
- statements also interact to an alarming degree. I don't use PL/I
- anymore and I'm glad of it. PL/I = "Pretty Lousy One" in my lexicon.
- YMMV.
-
- > - if a language REQUIRES workaround OFTEN, then it is LESS readable
- > than another language that is reacher.
-
- I had to workaround PL/I signals, so I know what you mean. PL/I
- makes for bletcherous code if you try to handle all cases.
-
- [snip]
-
- Sincerely,
-
- Gene Wirchenko
-
- C Pronunciation Guide:
- y=x++; "wye equals ex plus plus semicolon"
- x=x++; "ex equals ex doublecross semicolon"
-
-